<link href="/uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/uploadify/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/uploadify/swfobject.js"></script>
<script type="text/javascript" src="/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  $('#file_upload').uploadify({
    'uploader'  : '/uploadify/uploadify.swf',
    'script'    : '/admin/picture/upload',
    'cancelImg' : '/uploadify/cancel.png',
    'folder'    : '/uploads',
	'auto'      : true,
	'fileExt'   : '*.jpg;*.gif;*.png',
	'fileDesc'  : 'Image Files (.JPG, .GIF, .PNG)',
	'multi'     : true,
	'fileExt'        : '*.jpg;*.gif;*.png',
	'fileDesc'       : 'Image Files (.JPG, .GIF, .PNG)',
	'removeCompleted' : false,
	'onComplete': function(event, queueID, fileObj, response, data) {
			$('#file_upload'+queueID).append(
				'<img src='+fileObj.filePath+' alt="" width="100" height="150"> <input name="'+queueID+'" type="hidden" value='+fileObj.filePath+'>'
			);
		 }
  });
});
</script>

	<form method="post" action="/admin/picture/save/<?php echo $id;?>" >
<input id="file_upload" name="file_upload" type="file" />
<input type="submit" value="Submit" id="submit">
</form>
